我正在尝试使用固定宽度td
s和可变宽度td
s 的表格.
我使用CSS calc()
功能,但不知何故,似乎我不能%
在表中使用.
这就是我到目前为止所拥有的:
<table border="0" style="width:100%;border-collapse:collapse;">
<tr style="width:100%">
<td style="width:30px;">1</td> <!--Fixed width-->
<td style="width: calc( (100% - 230px) / 100 * 40);">Title</td> <!--Width should be 40% of the remaining space-->
<td style="width: calc( (100% - 230px) / 100 * 40);">Interpret</td> <!--Width should be 40% of the remaining space-->
<td style="width: calc( (100% - 230px) / 100 * 20);">Album</td> <!--Width should be 20% of the remaining space-->
<td style="width:80px;">Year</td><!--Fixed width-->
<td style="width:180px;">YouTube</td><!--Fixed …
Run Code Online (Sandbox Code Playgroud) 我目前正在快速学习并正在试验数据结构。在可能的代码中,我有一些带有名称(字符串)和几个任务(字符串数组)的例程。这些值在一个结构中。
所以我试图在初始化后向数组添加另一个值。我的代码实际上正在运行,但是我真的认为它非常奇怪和奇怪,不要认为这是应该完成的方式。
var routineMgr: routineManager = routineManager();
struct routine{
var name = "Name";
var tasks = [String]();
}
class routineManager: NSObject {
var routines = [routine]();
func addTask(name: String, desc: String){
//init routines with name and an array with certain values, here "Hallo" & "Moin"
routines.append(routine(name: name, tasks: ["Hallo","Moin"]));
//so i just put this part here to make the example shorter, but it would be in ad different function to make more sense
//adding a new value ("Salut") to the …
Run Code Online (Sandbox Code Playgroud) id3 标签中封面/专辑封面的字段名称是什么?
例如。:
标题:标题 - TT2 - TIT2
艺术家:艺术家 - TP1 - TPE1
专辑 : 专辑 - TAL - TALB
覆盖: ?- ? - ?
我希望有人可以帮助我...
提前谢谢!