-1
A
回答
4
您使用<fieldset>
和HTML元素<legend>
見下
fieldset {
border-radius: 5px;
}
<fieldset>
<legend>Contact:</legend>
Name:<input type="text">
<br>
Email:<input type="text">
</fieldset>
4
例如您可以將邊框容器周圍,填充背景的文字,所以大綱是c UT斯達康過這樣的:
<html>
<style>
#text {
position: absolute;
background: white;
top: -15px;
left: 10px;
padding: 5px;
}
#con {
margin: 20px;
width: 300px;
height: 500px;
position: relative;
border: 5px solid red;
border-radius: 5px;
}
</style>
<body>
<div id="con">
<div id="text"> SEMI BORDER ? </div>
</div>
</body>
</html>
相關問題
- 1. 圍繞DIV的邊框
- 2. 圍繞html div的邊框
- 3. 圍繞div的CSS3漸變邊框
- 4. 圍繞div的造型邊框
- 5. 圍繞居中div的邊框
- 6. 圍繞文本範圍的邊框
- 7. 如何讓這個div邊框一直圍繞着整個div
- 8. CSS如何使內部的div邊框半徑與外層div邊框半徑
- 9. 圍繞背景圖像div的不需要的邊框
- 10. 圍繞行的表格的邊框
- 11. 圍繞標題和段落的邊框
- 12. Html圍繞h3的未知邊框?
- 13. Bootstrap - 圍繞面板的白色邊框
- 14. CSS中的div標籤和圍繞div的內聯邊框的問題
- 15. 圍繞主DIV
- 16. 圍繞自定義LinearLayout繪製邊框
- 17. 圍繞圖像QT繪製邊框。
- 18. 圍繞mkmapview,scrollview和webview繪製邊框
- 19. 圍繞畫布繪製邊框
- 20. 圍繞任意路徑擬合邊框
- 21. 邊界半徑只是圍繞我的divs頂部?
- 22. 圍繞左下角div圍繞文本?
- 23. 圍繞一個半徑的圓安排不同的高度div
- 24. 爲div創建邊框半徑
- 25. 圍繞羣組的邊界
- 26. 圍繞System.Windows.Forms.Button的邊距
- 27. 圍繞浮動div包圍全寬div
- 28. 圍繞相對位置div div圍繞文字
- 29. 圍繞嵌套的div
- 30. 問題圍繞我的網站與使用div標籤的邊框
如果我的回答幫助,請考慮將其標記爲接受的:) –