border


The different addressing modes of CUDA textures

旧街凉风 提交于 2020-01-22 07:30:56
问题 I am using a CUDA texture in border addressing mode ( cudaAddressModeBorder ). I am reading texture coordinates using tex2D<float>() . When the texture coordinates fall outside the texture, tex2D<float>() returns 0 . How can I change this returned border value from 0 to something else? I could check the texture coordinate manually and set the border value myself. I was wondering if there was CUDA API where I can set such a border value. 回答1: As mentioned by sgarizvi, CUDA supports only four,

Is there a way to create a button (or div) with a border that has a gradient and has rounded corners?

前提是你 提交于 2020-01-21 10:59:04
问题 This is what it should look like: Attempts so far: Using a gradient background plus an inner element to cover it and leave just an outer "border". The background is obviously not transparent . body { background: #242424; height: 100%; width: 100%; margin: 0; padding: 0; box-sizing: border-box; font-family: sans-serif; color: #FFFFFF; } div { display: flex; flex-direction: column; justify-content: center; align-content: center; align-items: center; width: 100%; height: 100vh; } h1 { margin:

How i can create border dashed with gradient?

≡放荡痞女 提交于 2020-01-21 07:20:30
问题 Hi everyone I need to create border dashed gradient like in this picture.Heres my CSS code.Please anyone help me. .Rectangle-5 { margin: 51px 0px 0px 35px; display: inline-block; width: 370px; height: 280px; border-radius: 3px; border: 1px dashed; border-image-source: linear-gradient(to bottom, #4fc3f7, #ab5ca4 49%, #ff512f); border-image-slice: 1; } 回答1: New answer Here is an improvement version of the initial answer with less of code. The idea is to rely on multiple background and adjust

Transparent border with background color

戏子无情 提交于 2020-01-21 04:19:34
问题 This is strange. This works: border-right: 1px solid rgba(0,0,0,0.12); /* renders a gray border */ But when I use it together with background color, then border is now a solid black line. background-color: #333; border-right: 1px solid rgba(0,0,0,0.12); /* renders a black border */ Am I missing something ? http://codepen.io/anon/pen/myxpXN 回答1: The behaviour you are experiencing is that the background of the element appears through the transparent border. If you want to prevent this and clip

How to reset / remove chrome's input highlighting / focus border? [duplicate]

半城伤御伤魂 提交于 2020-01-18 04:47:32
问题 This question already has answers here : How to remove focus border (outline) around text/input boxes? (Chrome) [duplicate] (11 answers) Closed 4 years ago . I have seen that chrome puts a thicker border on :focus but it kind of looks off in my case where I've used border-radius also. Is there anyway to remove that? 回答1: You should be able to remove it using outline: none; but keep in mind this is potentially bad for usability: It will be hard to tell whether an element is focused, which can

can't add border on map fragment android

一个人想着一个人 提交于 2020-01-16 19:16:08
问题 I get an issue when I try to add border on fragment, this seems not to work ... This is my fragment xml, but if I added on other layout like Linear or Relative Layout, this works.. <fragment android:id="@+id/map" android:name="com.google.android.gms.maps.SupportMapFragment" android:layout_width="match_parent" android:layout_height="120dp" android:layout_below="@+id/include1" android:background="@drawable/border_bottom" /> and border_bottom.xml <layer-list xmlns:android="http://schemas.android

How can I add an elliptical border to a JFrame

拥有回忆 提交于 2020-01-16 11:29:06
问题 I have an undecorated JFrame in the shape of an ellipse, that I would like to add a border. I am hoping I don't have to implement the rootPane.paintComponent method, and that I can just do this by adding a border. Is this possible in Java 7 or 8? 回答1: In your implementation of paintComponent() , use setClip() with an Ellipse2D sized to match the image's width and height . private Ellipse2D.Double border = new Ellipse2D.Double(); … public void paintComponent(Graphics g) { super.paintComponent(

Border over borders CSS List <ul>

瘦欲@ 提交于 2020-01-15 08:56:05
问题 I am facing a problem with edges in a css list ( <ul> , <li> ). The problem that when I set the left edge with a color and a different thickness, the lower edge of overlapping ends as shown in the screenshot below: In the picture there to see the right, so here I leave the fiddle to anyone who can give me help in this situation. http://jsfiddle.net/Igaojsfiddle/T6KrE/31/ #contactList > li { font-weight: bold; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); background-image:

Make an arrow shape with responsive width and only CSS

 ̄綄美尐妖づ 提交于 2020-01-14 12:36:15
问题 I'm trying to make a container that has an upward arrow attached to it. I am familiar with the border drawing trick and think that's a likely solution, but it only works for known sizes I think, since you have to specify border in em or px. The shape I would like to make is this: . / \ / \ / \ | flex | | | Where the content area can flex to different sizes as a percentage of a parent container. Here is the CSS, with the problem area flagged: .metric { display: inline-block; position: relative

How to align an absolute div

不想你离开。 提交于 2020-01-14 06:04:58
问题 I have the following code: body{ margin: 10px; } .menu { border: solid black; border-width: 1px 1px 0px 1px; background-color: black; color: white; width: 300px; position: relative; padding: 12px; } .menu:hover{ background-color: white; color: black; } .dropdown { position: absolute; background-color: white; width: 200px; left: -1px; border: solid black; border-width: 0px 1px 1px 1px; color:black; top:100%; } .dropdown ul { list-style: none; padding: 10px; margin: 0; } .zoom { zoom: 200%; }

工具导航Map